#pragma once

#include "BaseAction.h"

class OpStopAction : public BaseAction
{
public:
    OpStopAction(shared_ptr<ApplicationContext> context)
        : BaseAction(
              context,
              QString("OpStopAction"),
              QString::fromStdWString(L"ֹͣ"),
              new QKeySequence(Qt::Key_F6),
              &QApplication::style()->standardIcon(QStyle::SP_MediaStop)
          )
    {
    }

    void execute() override
    {
        try {

        } catch (std::exception& e) {
            showErrorMessageBox(e);
        } catch (...) {
            cout << "Caught exception from OpStopAction::execute()" << endl;
        }
    }
};
